import { baseRequest } from '@/util/request'

const request = (url, ...arg) => baseRequest(`/genBasic/${url}`, ...arg)

//示例以application/json格式传参
export default {
  // 会话统计
  getAllTableInfo(data) {
    return request('getAllTableInfo', data, 'get')
  },
  tableColumns(data) {
    return request(`tableColumns/${data}`, data, 'get')
  },
  add(data){
    return request('add', data, 'post')
  },
  page(data){
    return request('page', data, 'get')
  },
  detail(data){
    return request('detail',data,'get')
  },
  batchDelete(...data){
    return request('batchDelete',data,'post')
  },
}